import React, { Component } from 'react'
import ContralItem from '../util/contraltem'
import Sonsson from './sonsson'
 class Son extends Component {
   state = {
       val:""
   }
   setVal(e){
       console.log(this.props,"son")
        this.props.send(e.target.value)
   }
  render() {
      console.log(this.props)
    return (
      <div>
          <input type="text" defaultValue={this.state.val} onChange={this.setVal.bind(this)}/>
          <Sonsson></Sonsson>
      </div>
    )
  }
}

export default Son